home *** CD-ROM | disk | FTP | other *** search
- /************************************************************************
- filename: GTK2CEGuiRendererSelector.h
- created: 24/9/2004
- author: Paul D Turner
- *************************************************************************/
- /*************************************************************************
- Crazy Eddie's GUI System (http://www.cegui.org.uk)
- Copyright (C)2004 - 2005 Paul D Turner (paul@cegui.org.uk)
-
- This library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- This library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with this library; if not, write to the Free Software
- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- *************************************************************************/
- #ifndef _GTK2CEGuiRendererSelector_h_
- #define _GTK2CEGuiRendererSelector_h_
-
- #include "CEGuiRendererSelector.h"
- #include <gtk/gtk.h>
- #include <string>
-
- class GTK2CEGuiRendererSelector : public CEGuiRendererSelector
- {
- public:
- GTK2CEGuiRendererSelector();
- ~GTK2CEGuiRendererSelector();
-
- bool inkokeDialog();
-
- private:
- // Renderer name strings
- static const std::string OgreRendererName;
- static const std::string OpenGLRendererName;
- static const std::string IrrlichtRendererName;
-
- // Static member funcs
- void createDialog();
- static void on_cancelButton_clicked(GtkButton* button, gpointer user_data);
- static void on_okButton_clicked(GtkButton* button, gpointer user_data);
- static void on_combobox1_changed(GtkComboBox* combobox, gpointer user_data);
-
- // general data
- bool d_cancelled;
-
- // GTK2 widgets
- GtkWidget* d_dialog;
- GtkWidget* d_vbox1;
- GtkWidget* d_label1;
- GtkWidget* d_hbox1;
- GtkWidget* d_cancelButton;
- GtkWidget* d_okButton;
- GtkWidget* d_combobox1;
- };
-
- #endif // end of guard _GTK2CEGuiRendererSelector_h_
-